package com.huluobo.h3weekdemo.search

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.lifecycle.ViewModelProvider
import com.huluobo.h3weekdemo.R
import com.huluobo.h3weekdemo.base.BaseMVVMActivity
import com.huluobo.h3weekdemo.databinding.ActivitySearchBinding
import com.huluobo.h3weekdemo.net.Const

class SearchActivity : BaseMVVMActivity<ActivitySearchBinding>() {
    private lateinit var viewModel: SearchViewModel
    private var typeId = 0
    override fun initData() {
        typeId = intent.getIntExtra(Const.PARAM_NEWS_TYPE_ID, 0)
        Log.i("TagA", "typeId:$typeId")
        viewModel = ViewModelProvider(this)[SearchViewModel::class.java]
    }

    override fun initView() {
    }

    override fun getLayoutId(): Int = R.layout.activity_search
}